import 'package:flutter/material.dart';
import 'package:fyi/pages/history_page.dart';
import 'package:fyi/pages/login_page.dart';
import 'package:fyi/pages/splash_page.dart';
import 'package:fyi/router/route_app.dart';

class Routes {
  static final routeMap = {
    //'/': (context) => SplashPage(),
    LoginPage.sName: (context) => wrapApp(LoginPage()),
    HistoryPage.sName: (context) => FreeLocalizations(child: HistoryPage()),
  };

  Routes() {
    runApp(RouteApp(
        routeMap
    ));
  }
}